package com.dongan.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName:User
 * @Description:
 * @Author:longtao
 * @Date:2021/6/28
 * @Version:1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserLogin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户名
     */
    @TableField("LOGIN_ID")
    private String loginId;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    /**
     * 状态
     */
    @TableField("STATUS")
    private String status;

    /**
     * 图片路径
     */
    @TableField("PHOTO_PATH")
    private String photoPath;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 性别(0:男,1:女)
     */
    private Integer gender;

    /**
     * 住址
     */
    private String address;

    /**
     * 电话
     */
    private String phone;

    /**
     * 微信登录的openId

     */
    private String openId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Integer deleted;
}
